alapromote.lua
function onUse(cid, item, frompos, item2, topos)
if item.uid == 8001 and item.itemid == 1945 then
if(isInArray({1, 2, 3, 4}, getPlayerVocation(cid))) then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid, 22, "Parabens você foi promovido.")
else
doPlayerSendCancel(cid,"Voce ja tem promotion.")
end
elseif item.uid == 8001 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
actions.xml
<action actionid="8001" script="alapromote.lua" />





info
Grupo: Campones
Registrado: 23/07/10
Posts: 28
Reputação: +1
Aew galerinha do Xtibia...
gostaria de algo que desse second promotion por alavanca...
HAIL XTIBIA!